const productRouter = {
  route: null,
  name: null,
  title: '产品管理',
  type: 'folder', // 类型: folder, tab, view
  icon: 'iconfont icon-tushuguanli',
  filePath: 'view/product-management/', // 文件路径
  order: null,
  permission: ['分页查询产品'],
  inNav: true, // 显示、隐藏
  children: [
    {
      title: '独立产品',
      type: 'view',
      name: 'Independent',
      route: '/user/independent-product',
      filePath: 'view/product-management/product-management/independent-products/independent.vue',
      inNav: true,
      permission: [
        '分页查询产品',
        '导入图片压缩包',
        '导出',
        '打印条形码',
        '删除产品',
        '创建产品',
        '修改产品',
        '查看已审核的产品',
        '修改产品状态',
        '批量设置预警库存',
        '查询预警产品',
        '批量设置包材',
        '根据id查询',
        '批量导入',
        '获取树形品类',
        '打印条形码',
      ],
      icon: 'iconfont icon-tushuguanli',
    },
    {
      title: '组合产品',
      type: 'view',
      name: 'Portfolio',
      route: '/user/portfolio-product',
      filePath: 'view/product-management/product-management/portfolio-products/portfolio.vue',
      inNav: true,
      permission: [
        '分页查询产品',
        '导入图片压缩包',
        '导出',
        '打印条形码',
        '删除产品',
        '创建产品',
        '修改产品',
        '查看已审核的产品',
        '修改产品状态',
        '批量设置预警库存',
        '查询预警产品',
        '批量设置包材',
        '根据id查询',
        '批量导入',
        '获取树形品类',
        '打印条形码',
      ],
      icon: 'iconfont icon-tushuguanli',
    },
    {
      title: '作废产品',
      type: 'view',
      name: 'Obsolete',
      route: '/user/obsolete-product',
      filePath: 'view/product-management/product-management/obsolete-product/obsolete.vue',
      inNav: true,
      permission: [
        '分页查询产品',
        '导入图片压缩包',
        '导出',
        '打印条形码',
        '删除产品',
        '创建产品',
        '修改产品',
        '查看已审核的产品',
        '修改产品状态',
        '批量设置预警库存',
        '查询预警产品',
        '批量设置包材',
        '根据id查询',
        '批量导入',
        '获取树形品类',
        '打印条形码',
      ],
      icon: 'iconfont icon-tushuguanli',
    },
  ],
}

export default productRouter
